package net.alan.common.constants;

import org.springframework.util.ClassUtils;

/**
 * 常量信息类
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/22
 */
public class Constants {
    public static final String PAY_URL = "http://localhost:8080/pay/topay";

    public static final String SF_FILE_SEPARATOR = System.getProperty("file.separator");//文件分隔符
    public static final String SF_LINE_SEPARATOR = System.getProperty("line.separator");//行分隔符
    public static final String SF_PATH_SEPARATOR = System.getProperty("path.separator");//路径分隔符

    public static final String QRCODE_PATH = ClassUtils.getDefaultClassLoader().getResource("static").getPath() + SF_FILE_SEPARATOR + "qrcode";

    //微信账单 相关字段 用于load文本到数据库
    public static final String WEIXIN_BILL = "tradetime, ghid, mchid, submch, deviceid, wxorder, bzorder, openid, tradetype, tradestatus, bank, currency, totalmoney, redpacketmoney, wxrefund, bzrefund, refundmoney, redpacketrefund, refundtype, refundstatus, productname, bzdatapacket, fee, rate";

    public static final String PATH_BASE_INFO_XML = SF_FILE_SEPARATOR + "WEB-INF" + SF_FILE_SEPARATOR + "xmlConfig" + SF_FILE_SEPARATOR;

    public static final String CURRENT_USER = "ShopInfo";

    public static final String SUCCESS = "success";

    public static final String FAIL = "fail";

}
